import '../../utils/concrete';
import concrete from '../../utils/jquery-concrete';
export function nearParkInfo(lng, lat,distance) {
  return concrete.module('GuidanceService').queryNearParks(lng, lat,distance);
}

export function getZQOpenId(code) {
  return concrete.module('GuidanceService').getOpenId(code)
}
export function canReserve(carNo, carType, parkno, placeId) {
    return concrete.module('AdvanceService').canGuidance(carNo, carType, parkno, placeId)
 }

export function ReservePay(carno, openid, parkno, timehas, cartype, phone, placeid, parkname, uuid,zqopenid) {
  return concrete.module('AdvanceService').guidancePay(carno, openid, parkno, timehas, cartype, phone, placeid, parkname, uuid,zqopenid)
}
export function getJNPayOpenid(code) {
  return concrete.module('GuidanceService').getPayOpenId(code)
}

export  function findCommonCars(code){
  return concrete.module('CarManageService').findCommonCars(code)
}

export function findParkingRecord(openid) {
  return concrete.module('PayService').findParkingRecord(openid)
}

export function findParkInfo(PlateInfo) {
  return concrete.module('PayService').findParkInfo(PlateInfo)
}

export function inParkPay( plateNo,  plateColor,  JNopenid, ZQopenid) {
  return concrete.module('PayService').inParkPay(plateNo,  plateColor,  JNopenid,ZQopenid)
}

export function findWxUserInfo(code) {
  return concrete.module('UserService').findWxUserInfo(code)
}

export  function getBaiduCoordinates(lat,lng) {
  return concrete.module('GuidanceService').getBaiduCoordinates(lat,lng)

}

export function saveSearchMap (SearchMapRecord) {
  return concrete.module('SearchMapService').saveSearchMap(SearchMapRecord)
}

 export  function UserInfoByOpenid(openid) {
   return concrete.module('UserService').findWxUserInfoByOpenid(openid)
 }
 export  function saveGuidancePark(openId, parkNo, parkName) {
   return concrete.module('GuidanceParkService').saveGuidancePark(openId, parkNo,parkName)
 }
